<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/6/14
 * Time: 16:08
 */

namespace Weixin\Model\User_weixin;


use Think\Model;

class UserWeixinModel extends Model
{
    protected $tablePrefix = '';

    public function addUserWeixin($data)
    {
        return $this->data($data)->add();
    }

    public function getUserId($weixin_id)
    {
        $map['weixin_id'] = $weixin_id;
        return $this->where($map)->field('user_id')->find();
    }
}